	var basePHP = "http://vmdhcls04.deri.ie/dataFusion/srx2jsonp.php";	
$(document).ready(


	function () {
		var endpoints = $('.sparql');
		
		for (var i=0; i<endpoints.length; i++) {
			
		
			$('#sparql'+(i+1)+'_types').change(
				function () {
					
					var domid = $(this).attr('id').replace('_types', '_props');
					var url = $('#'+$(this).attr('id').replace('_types', '')).val();
					
					var c = $('#'+$(this).attr('id')+' option:selected').val();
					$('#'+domid).html('');
					if(c!=='(no match)'){
						displayProperties(url, c, domid);	
					}
					else {
						$('#'+domid).html('');
					}
				}
			);

		}
	
	
	
	$('#queries1').change(
			function () {
				var seld = $('#'+$(this).attr('id')+' option:selected').val();
				switch (seld) 
				{
	
				case 'p1':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/SMILESnotation> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dDlvNS1XeGI3aHkxWWkwZlJzSGJhUnc6MQ");			
					}		
				) 
				break;
				
				
				
								case 'p2':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/accessRights> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFBESk1VbUl0Q01ycHI4YVdoQVpDdkE6MQ");			
					}		
				) 
				break;
				
				
				
								case 'p3':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/commonName> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open(" https://docs.google.com/spreadsheet/viewform?formkey=dGZYOXZ3LU9ieFdwdTdFSzRPZ1FaOFE6MQ");			
					}		
				) 
				break;
				
				
				
								case 'p4':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/containsTarget> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dDhwRDBvbHVFRkRlYUlkd1AwbGliT3c6MQ");			
					}		
				) 
				break;
				
				
				
								case 'p5':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/description> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dElfLThPRUxOSjZKeUZGenhrcmRjdXc6MQ");			
					}		
				) 
				break;
				
				
								case 'p6':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/hasCellularLocation> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFpWUVpxWjB0QjhSbk54VE9XSS1vYnc6MQ");			
					}		
				) 
				break;
				
				
				
								case 'p7':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/hasComment> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGZsclB4NHZvZTNaRDllQkgxLU9rS2c6MQ");			
					}		
				) 
				break;
				
				
								case 'p8':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/hasDate> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dDh5WWd6TWhiWFlhclJCQmw1X1U3dnc6MQ");			
					}		
				) 
				break;
				
				
								case 'p9':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/hasFormula> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEdjQkxqTmhvcmhlNVJ6LUJpMDdoUnc6MQ");			
					}		
				) 
				break;
				
				
								case 'p10':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/hasInput> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dDNYaklDd1pBbWtMdjNjY1phX0N5UXc6MQ");			
					}		
				) 
				break;
				
				
								case 'p11':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/hasSequence> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEwtdFBENklFenhseTlhMjY0RktSdlE6MQ");			
					}		
				) 
				break;
				
				
								case 'p12':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/hasTarget> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFZFa1JpblRoeGpaS0dfOXZfdTdnZmc6MQ");			
					}		
				) 
				break;
				
				
								case 'p13':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/identify> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEtmOTF4allGd2ZQY29yVktSaW9OVVE6MQ");			
					}		
				) 
				break;
				
				
								case 'p14':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/inchi> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEEwZVZreFdGaHFZZkZxbzlfZHRaMHc6MQ");			
					}		
				) 
				break;
				
				
								case 'p15':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/measure> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open(" https://docs.google.com/spreadsheet/viewform?formkey=dGtZRkh1X2Z6N21CZDdiSkRzYkpxNmc6MQ");			
					}		
				) 
				break;
				
				
				
								case 'p16':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/mmoc_activity> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dHlUS0hJVlRCNmxGOUxXZ2VwYlRvb1E6MQ");			
					}		
				) 
				break;
				
				
								case 'p17':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/molecularWeight> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEZoWWhqbEw0bUNhNVlXZ19SRnMxT1E6MQ");			
					}		
				) 
				break;
				
				
								case 'p18':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/pathwayOrder> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGUtbG1HVDdKM0FHRnRuN3FkMkNvY1E6MQ");			
					}		
				) 
				break;
				
				
				
								case 'p19':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/size> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEhIZjh4eXd0NFhzSmxiaC1NVG8weFE6MQ");			
					}		
				) 
				break;
				
				
								case 'p20':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subPropertyOf<http://chem.deri.ie/granatum/title> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes1').val(p);
				$('#assembledQuery1').val(q);
				$('#query1').val(p+q);
				$('#execute_query1').unbind('click');
				$('#execute_query1').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dG5VLVFKblhxZ2JUYjVxanFZMmZtUkE6MQ");			
					}		
				) 
				break;
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
	
	}
	}
	)
	
	
	

		$('#queries').change(
			function () {
				var seld = $('#'+$(this).attr('id')+' option:selected').val();
				switch (seld) 
				{
				
				
	
				
				
				
				
				
				
				
				
					case 'c1':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/ExperimentalFactor> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEZmYlJJRXYtY2lZUW5QenAtM0l3X2c6MQ");			
					}		
				) 
				break;

				
					case 'c2':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Investigation> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFh0b2RsSkFwTTVZLUp4eERiZy1ZV1E6MQ");			
					}		
				) 
				break;	
				

					case 'c3':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Organism> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dE9NaWRWZXRUeUR1eEtXRk92TW9YcHc6MQ");			
					}		
				) 
				break;


					case 'c4':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/PublishedWork> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEVGeEtRWjdjWWx0bl9ncWl3OXRaaEE6MQ");			
					}		
				) 
				break;



					case 'c5':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/CarcinogenActivating> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dDlhLW54aGs1dS1IRktwOUdsczNnUlE6MQ");			
					}		
				) 
				break;


					case 'c6':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/VirtualScreening> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGxFNUhwTk5MYjJkclgwMVp4RERzYkE6MQ");			
					}		
				) 
				break;


					case 'c7':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Pathway> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dF9SWWNoSkFVTzJTam1TZ3JKRHlUVWc6MQ");			
					}		
				) 
				break;


					case 'c8':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/pubmedURL> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGlEdHRxeDY5Tkx6UVQyekQyX3V1WUE6MQ");			
					}		
				) 
				break;


					case 'c9':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/biologicalMechanism> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFBOQnFGQUhCdEdjcWV0TlpndlBUclE6MQ");			
					}		
				) 
				break;


					case 'c10':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Concentration> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGQwQlpxTEF1V3JpNDBQTnREbG0ydGc6MQ");			
					}		
				) 
				break;


					case 'c11':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/pubchemURI> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEwwdFBIYW1raXl0eDJnRmN0cDZ2aHc6MQ");			
					}		
				) 
				break;


					case 'c12':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/inVitroBioAssay> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dF9lclFPeWFLVVlZaEFTS3hXVGZ0NEE6MQ");			
					}		
				) 
				break;


					case 'c13':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Sugar> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGVibjRlelZuWWFlNjFZX3l1Tm9zTUE6MQ");			
					}		
				) 
				break;


					case 'c14':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Drug> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dHlBRlFKOGROSUl5MDQ4Wmh1aHE3a3c6MQ");			
					}		
				) 
				break;


					case 'c15':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/ChemopreventiveAgent> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEVBdDlPUUFYLXQ4VjBqdGtua21aWEE6MQ");			
					}		
				) 
				break;


					case 'c16':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Database> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEtWajNtTVFJa1lTYWlISUNaeXRaX3c6MQ");			
					}		
				) 
				break;

				

					case 'c17':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/ChemopreventionStudy> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGwzY2d4SVpiWkV2RWg2ZDVFaFF6RUE6MQ");			
					}		
				) 
				break;


					case 'c18':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Source> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dDNYeVhESEdwS25EWFRnODEyUklVUmc6MQ");			
					}		
				) 
				break;


					case 'c19':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/inVivoBioAssay> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dElpbWlaNHE0b1dreENGY1pOYmJRdGc6MQ");			
					}		
				) 
				break;

					case 'c20':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Measurement> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGtyMXVuZ1hwZzRDTjlIT2lwNVNHeVE6MQ");			
					}		
				) 
				break;


					case 'c21':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Protocol> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dE5wUUZqcUpCTDNQbTVKbjFSZVJ2ZlE6MQ");			
					}		
				) 
				break;



					case 'c22':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/CancerType> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFI4WjZmWkdzRGJ6V3lXd1BtdnZDQVE6MQ");			
					}		
				) 
				break;


					case 'c23':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/user_assay> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFRyc1I3R1BjOENKRncxSS1Rem1DNlE6MQ");			
					}		
				) 
				break;


					case 'c24':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/ReactiveOxygenSpecies> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEUxbDJVVmF4a3FIWlJYRWFvbUphSGc6MQ");			
					}		
				) 
				break;


					case 'c25':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Toxicity> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dDhPc0c0OEsxdXl1eFhiOTFIWGF0alE6MQ");			
					}		
				) 
				break;


					case 'c26':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/ResearchStatement> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFZ2djVqTjFRSlZnRDNlN0I2VkVrNmc6MQ");			
					}		
				) 
				break;



					case 'c27':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/ToxicityStudy> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGs3Z29JMndybnZvNTJzNGMzNFNvN3c6MQ");			
					}		
				) 
				break;					
				
				
				

					case 'c28':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Target> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dDUzRjhlTnkwUi1EVlZDaHRHYzRKRWc6MQ");			
					}		
				) 
				break;


					case 'c29':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/NucleicAcid> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFhNVW1uakdYQ2lpa0QyWWxXZDhqZ0E6MQ");			
					}		
				) 
				break;


					case 'c30':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/dbpediaURI> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFd6enJkZTFaT1lUeDVQcEZQRzhpRmc6MQ");			
					}		
				) 
				break;

					case 'c31':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://s3db.org/core#Collection> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dC0yWDF1WlNrOHVaZ292UjdFUUpHVFE6MQ");			
					}		
				) 
				break;


					case 'c32':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Organ> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEJJdDBNV2x5SkFkZFREYnNIWEl4Umc6MQ");			
					}		
				) 
				break;



					case 'c33':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Estrogenic_Activity> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open(" https://docs.google.com/spreadsheet/viewform?formkey=dDdsRDIyMlhMWDNrbk02S2dORFkzdEE6MQ");			
					}		
				) 
				break;


					case 'c34':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Disease> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFJwUU1YVTRoTDZSS3Z6clA2N1d6b0E6MQ");			
					}		
				) 
				break;


					case 'c35':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Lipid> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGs4QXl2UGt0UHlfR3draHVJWUFfNEE6MQ");			
					}		
				) 
				break;


					case 'c36':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Antiinflammatory> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGlRb1Z0QXRNdFVVazhxR09Oa0g2dEE6MQ");			
					}		
				) 
				break;


					case 'c37':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Protein> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dDFJSnYzWUY1Mk9IS1h6OUhsN1UxcWc6MQ");			
					}		
				) 
				break;



					case 'c38':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/BioMaterial> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dG95bzc4ZW9waEU2NFJ6UWFfa1ZvQnc6MQ");			
					}		
				) 
				break;				
								
				
					case 'c39':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/ClinicalTrial> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dHVnS0ZfM3JCSUZJejlDOWhFUnlnWHc6MQ");			
					}		
				) 
				break;



					case 'c40':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/chebiURI> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEoyeWpyMTFYRVFIOExnc2RGWlhTN2c6MQ");			
					}		
				) 
				break;


					case 'c41':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/drugbankURI> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFlZb0FKTklueEdYUGJzMW52RDk5bEE6MQ");			
					}		
				) 
				break;


					case 'c42':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/keggURI> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFc3dHJrR0tKc01DODBfR1l6NXBLU2c6MQ");			
					}		
				) 
				break;


					case 'c43':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Antioxidant> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGp1NWFBVHN1elQxVVhPVWVQT3liZmc6MQ");			
					}		
				) 
				break;


					case 'c44':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Antiproliferative> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGNFZ1VjQVN0VFRjck94TTNPZnFwdEE6MQ");			
					}		
				) 
				break;



					case 'c45':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/goURI> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGFWclQ2bXBYT1pCWXIzdnBDX3ljdkE6MQ");			
					}		
				) 
				break;					
				
				case 'c46':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/mechanismBasedAssay> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dE85eXBLZjhxWkxFNmQ5bXYwLW1mQ2c6MQ");			
					}		
				) 
				break;


					case 'c47':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/in_silico_assay> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dDNuS0cyMjRkWW9RbnphM05pMmNocXc6MQ");			
					}		
				) 
				break;


					case 'c48':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/ScientificWorkflow> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEdOTzN2MHBaLVhQR2JKMVVKNXpsbHc6MQ");			
					}		
				) 
				break;

					case 'c49':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://purl.org/obo/owl/UO#UO_0000062> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFQ2cjJFWjk4aDRVZFh3NC1ZVVlsN1E6MQ");			
					}		
				) 
				break;


					case 'c50':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Study> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGFIMEQ1UDhfTHpldVY2RUFLZ1VOMkE6MQ");			
					}		
				) 
				break;



					case 'c51':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Assay> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dExLcHFnVElONHJpMDZBa2gtalRFT3c6MQ");			
					}		
				) 
				break;


					case 'c52':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/pubmedURI> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dDhnWGtrWjJGaGZUSG9adjhQbkpWR3c6MQ");			
					}		
				) 
				break;


					case 'c53':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Synthetic> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dE5reFBZMWtqbU16a25sZmhQRXZvY2c6MQ");			
					}		
				) 
				break;


					case 'c54':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Molecule> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dGxjMzFSd0dfSXZ5d2daWW5UX19nQlE6MQ");			
					}		
				) 
				break;


					case 'c55':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/ForumPost> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dFVOV0V3TUl6OGhKSnZhdmE1RzhITnc6MQ");			
					}		
				) 
				break;



					case 'c56':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/chemSpiderURL> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dC1PVGdhYzh1TXIzSS03NzVLb29pb0E6MQ");			
					}		
				) 
				break;				
								
				
				
					case 'c57':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Resource> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dC1IeF9TTGxMU0pUN1laTkVPeFo2NUE6MQ");			
					}		
				) 
				break;



					case 'c58':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/epigeneticsStudy> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dEoyYXhGZHFfYnczOWlWY3AwUWpXWEE6MQ");			
					}		
				) 
				break;


					case 'c59':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://chem.deri.ie/granatum/Natural> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dENlSjMzUEc1dEwxd25tNVN2d1NFX2c6MQ");			
					}		
				) 
				break;


					case 'c60':
					var p = "\nPREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>\nPREFIX owl:<http://www.w3.org/2002/07/owl#>\nPREFIX xsd:<http://www.w3.org/2001/XMLSchema#>\nPREFIX j.1:<http://rdfs.org/ns/void#>\nPREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX j.0:<http://rdfs.org/ns/void-ext#>";	
					var q = "\nselect ?class where {\n?class rdfs:subClassOf<http://rdfs.org/ns/void#Dataset> . \n }";
				$('#formaction').attr("action", "");
				$('#prefixes').val(p);
				$('#assembledQuery').val(q);
				$('#query').val(p+q);
				$('#execute_query').unbind('click');
				$('#execute_query').click(						
					function () {
						window.open("https://docs.google.com/spreadsheet/viewform?formkey=dG9mT0hZaUJkNTRwWE9OSDRLV2lxbnc6MQ");			
					}		
				) 
				break;

			
				
				}

			}
		)
		
		
		$('#prefixes').change( function () {
			var p = $('#prefixes').val();
			var q = $('#assembledQuery').val();
			$('#query').val(p+q);
			$('#formaction').attr("action", "http://vmdhcls04.deri.ie:8080/exp");	
		});
		$('#assembledQuery').change( function () {
			var p = $('#prefixes').val();
			var q = $('#assembledQuery').val();
			//console.log(p+q);
			//$('#query').val(p+q);
			//$('#formaction').attr("action", "http://vmdhcls04.deri.ie:8080/exp");
			$('#execute_query').unbind('click');
			$("#execute_query").click(function() {
			  $('body').append('<form id="theform" action="http://vmdhcls04.deri.ie:8080/exp" method="POST"><input type="hidden" name="query" id="query" value="'+(p+q)+'"><input type="hidden" id="media" name="media" value="'+$('#media_sel option:selected').val()+'"></form>');
			 $('#theform').submit();
			});
		
			
		});
	}
	
	
	
)


